package com.ityj.yygh.hospital.service;

import com.ityj.yygh.model.hosp.Schedule;
import com.ityj.yygh.vo.hosp.ScheduleOrderVo;
import com.ityj.yygh.vo.hosp.ScheduleQueryVo;
import org.springframework.data.domain.Page;

import java.util.List;
import java.util.Map;

public interface ScheduleService {
    boolean save(Map<String, Object> stringObjectMap);

    Page<Schedule> findScheduleByCondition(ScheduleQueryVo scheduleQueryVo, int pageNum, int pageSize);

    boolean remove(String hoscode, String depcode);

    Map<String, Object> findScheduleRule(Integer pageNum, Integer pageSize, String hoscode, String depcode);

    // 根据医院编号、科室编号和工作日期 获取排班具体信息
    List<Schedule> findScheduleDetail(String hoscode, String depcode, String workDate);

    Map<String, Object> getBookingScheduleRule(Integer page, Integer limit, String hoscode, String depcode);

    Schedule getScheduleById(String scheduleId);

    ScheduleOrderVo getScheduleOrderVo(String scheduleId);

    void updateSchedule(Schedule schedule);
}
